package com.miaosmart.dto.req;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.web.multipart.MultipartFile;


@Data
@Accessors(chain = true)
public class UserUpdateReqDTO {
    @NotBlank(message = "昵称不能为空")
    @Size(min = 2, max = 20, message = "昵称长度必须在2-20个字符之间")
    private String nickname;

    private MultipartFile avatar;

    private String oldPassword;

    @Size(min = 6, message = "新密码长度不能小于6位")
    private String newPassword;
} 